
import os
from building import *

cwd = GetCurrentDir()
src  = Glob('*.c')
# add cubemx drivers
src = Split('''
Src/stm32f1xx_hal_msp.c
Src/main.c
Src/usart.c
Src/gpio.c
Src/spi.c
Src/dma.c
Src/rtc.c
Src/can.c
Src/tim.c
Src/stm32f1xx_it.c
''')

path = [cwd]
path += [cwd + '/Inc']

group = DefineGroup('cubemx', src, depend = [''], CPPPATH = path)

Return('group')
